<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<base
	href="<%=request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
					+ request.getContextPath() + "/"%>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户中心</title>
<link rel="stylesheet"  type="text/css"  href="statics/css/agent.css"/>
<script src="statics/layer/layer.js"></script>
<script type="text/javascript" src="statics/js/jquery-1.12.4.js" charset="UTF-8"></script>

<script type="text/javascript">
$(function(){
	  //美化表格
	$("table>tbody>tr:even").css("background", "#fff");
	$("table>tbody>tr:odd").css("background", "#f9f9f9");
	//判断是否有优惠券
	if ($('.user .qq td').text()=='') {
		$('.wudanimg').css('display','block')
	}

});
</script>
</head>
<body>
<jsp:include page="top.jsp"></jsp:include>
<div class="waikuan">
<%@ include file="/WEB-INF/jsp/user_menu.jsp"%>
<div class="user">
	<div class="user-title">${titlem}</div>
	<div class="user-content" style="padding: 13px 13px 50px">
		<table class="qq">
			<tbody>
					<tr>
						<th width="">优惠卷名</th>
						<th width="">领取时间</th>
						<th width="">过期时间</th>
						<th width="">折扣</th>
						<th width="">剩余天数</th>
					</tr>
					<c:forEach items="${userd}" var="user">
						<tr>
						<td>${user.dName}</td>
						<td>
							<fmt:formatDate value="${user.udDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
						</td>
						<td>
							<fmt:formatDate value="${user.ugDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
						</td>
						<td>
							${user.ddiscount*10 }折
						</td>
						<td style="color:#aa0000;font-weight: 800;">${user.udsTime }</td>
						</tr>
				</c:forEach>
				</tbody>
			</table>
	<div style="text-align: center;display: none;" class="wudanimg">
			<img src="statics/image/userCenter/grayhui.png" style="margin: 30px;">
			<p style=" font-size: 16px; color: #60606c;">持续关注我们，领券机会多多的~
			</p>
		</div>
	
	
	</div>
</div>
</div>
<jsp:include page="bottom.jsp"></jsp:include>
</body>
</html>